var n = require("../../0E8B0BC42FB173BF68ED63C34BB4DCA6.js"), e = require("../../30A2BE152FB173BF56C4D61233F4DCA6.js");

getApp(), Page({
    data: {
        isx: /iphone10|iphone x/i.test(wx.getSystemInfoSync().model),
        isAndroid: /android/i.test(wx.getSystemInfoSync().system),
        tab: "home",
        userInfo: {},
        openBackgroundSetting: !1,
        openMineSetting: !1
    },
    onLoad: function(n) {},
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onShowRewardedVideoAd: function() {
        null.show().catch(function() {
            null.load().then(function() {
                return null.show();
            }).catch(function(n) {
                console.log("激励视频 广告显示失败");
            });
        });
    },
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function(o) {
        return {
            title: e(n.SHARE.title)[0],
            path: "/pages/index/index",
            imageUrl: "/assets/" + e(n.SHARE.image)[0]
        };
    },
    onHome: function() {
        console.log("onHome"), this.setData({
            tab: "home"
        });
    },
    onMine: function(n) {
        var e = n.detail.userInfo;
        console.log(e), this.setData({
            tab: "mine",
            userInfo: e
        });
    },
    onRoulette: function() {
        wx.navigateTo({
            url: "/pages/roulette/index"
        });
    },
    onPicker: function() {
        wx.navigateTo({
            url: "/pages/picker/index"
        });
    },
    onPoker: function() {
        wx.navigateTo({
            url: "/pages/poker/index"
        });
    },
    playDice: function(n) {
        var e = n.currentTarget.id;
        wx.navigateTo({
            url: "/pages/dice/index?style=" + e
        });
    },
    openSurrender: function() {
        wx.navigateTo({
            url: "/pages/touxiang/index"
        });
    },
    openTruth: function() {
        wx.navigateTo({
            url: "/pages/punishment/index?punishType=truth"
        });
    },
    followUs: function() {
        wx.previewImage({
            current: "https://cdn1.linktao.com/jiushenqi/follow.jpg",
            urls: [ "https://cdn1.linktao.com/jiushenqi/follow.jpg" ]
        });
    }
});
// 路羽资源博客 https://www.luyuz.cn/